# -*- coding = utf-8 -*-
# @TIME:2024/10/25 10:28
# @Author:月的第一话
# @File:demo2.py
# @Software:PyCharm
class Cat:
    def __init__(self,name):
        self.name=name
    @classmethod
    def speak(cls):
        print('miao miao miao')
    def miao(self):
        print('miao~~~~~')
cat=Cat('mimi')
print(cat.name)
cat.miao()
#print(Cat.name)#示例属性不能用类调用
Cat.miao()